<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-30 10:53:01
 * @LastEditTime : 2022-10-02 11:10:50
 * @FilePath     : \传值\vue3\父传子\第三种：父v-bind，子useAttrs\App.vue
-->
<template>
  <h1>我是父组件</h1>
  <!-- useAttrs：可以拿到父作用域中的非props属性集合(可以拿到class、style) -->
  <child-component :msg1="msg1" :msg2="msg2" title="3333"></child-component>
</template>

<script setup>
import { ref } from 'vue'
import ChildComponent from "./ChildComponent.vue";

const msg1 = ref("1111")
const msg2 = ref("2222")
</script>

<style lang="less">
</style>
